import { createApp } from 'vue'
import App from './App.vue'
import 'element-plus/dist/index.css'
// import 'element-plus/theme-chalk/el-message.css'

const app = createApp(App)

import router from './router'
app.use(router)
app.config.globalProperties.$routerAry = []

import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
app.use(ElementPlus, {
  locale: zhCn,
})

//global mixin
import elementMixin from './mixins/elementMixin.js'
app.mixin(elementMixin)
import routerMixin from './mixins/routerMixin.js'
app.mixin(routerMixin)
import dataMixin from './mixins/dataMixin.js'
app.mixin(dataMixin)
import hebeiMixin from './mixins/hebeiMixin.js'
app.mixin(hebeiMixin)

//ajax
import axiosReq from './utils/axiosReq.js'
app.config.globalProperties.$ajax = axiosReq
import utils from './utils/utils.js'
app.config.globalProperties.$utils = utils
import websocket from './utils/websocket.js'
app.config.globalProperties.$Websocket = websocket

import settings from './setting'
app.config.globalProperties.$setting = settings

//echarts
import * as echarts from 'echarts'
app.config.globalProperties.$echarts = echarts;

//router
// import './permission'

app.mount('#app')
